import request from '@/utils/request'

export function editbaseinfoup(data){
    return request({
        url: 'joint/platform/update',
        method: 'put',
        data
    })
}

  //基础信息
  export function getbaseinfo(data){
    return request({
      url: 'joint/platform/read',
      method: 'get',
      params:data,
      headers:{
        'showLoading':false
      }
    })
  }
  //提交code
  export function updateAppKey(data){
    return request({
      url: 'joint/platform/updateAppKey',
      method: 'put',
      data,
      headers:{
        'showLoading':false
      }
    })
  }

  // 申请基础信息
  export function applyinfo(data){
    return request({
      url: 'joint/platform/apply',
      method: 'post',
      data,
    })
  }
  // 
  export function banner(data){
    return request({
      url: 'joint/platform/banner',
      method: 'get',
      params:data,
      headers:{
        'showLoading':true,
      }
    })
  }
  export function bannerCreate(data){
    return request({
      url: 'joint/platform/banner/create',
      method: 'post',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
  export function bannerUpdate(data){
    return request({
      url: 'joint/platform/banner/update',
      method: 'put',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
  export function bannerUpdatestatus(data){
    return request({
      url: 'joint/platform/banner/updatestatus',
      method: 'put',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
  export function bannerDelete(data){
    return request({
      url: 'joint/platform/banner/delete',
      method: 'delete',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
  export function bannerUpdatesort(data){
    return request({
      url: 'joint/platform/banner/updatesort',
      method: 'put',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
  export function bannerSync(data){
    return request({
      url: 'joint/platform/banner/sync',
      method: 'put',
      data,
      headers:{
        'showLoading':false,
      }
    })
  }
